﻿<Window x:Class="TrailMapManager.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:modernControls="clr-namespace:ModernControls;assembly=ModernControls"
        xmlns:logic="clr-namespace:TrailMapManager.Logic"
        Style="{StaticResource MetroWindowStyle}"
        Title="MainWindow" MinHeight="500" MinWidth="650" Height="500" Width="650" Icon="trailmapmanagericon.ico">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/ModernControls;component/Style.xaml"/>
                <ResourceDictionary>
                    <logic:ProgramManager x:Key="programManager" />
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Border BorderBrush="{StaticResource AppBaseBrush}" BorderThickness="5,0,5,5">
        <Grid Background="White">
            <Grid.RowDefinitions>
                <RowDefinition Height="55"/>
                <RowDefinition />
            </Grid.RowDefinitions>
            <modernControls:WindowHeader Title="Trailmap Manager" Grid.Row="0" ExitClicked="WindowHeader_ExitClicked"/>
            <TabControl Grid.Row="1" ItemContainerStyle="{StaticResource TabControlItemContainerStyle}"
                    ItemsSource="{Binding Modules, Source={StaticResource programManager}}">
            </TabControl>
        </Grid>
    </Border>
</Window>
